package com.xiaojian.blog.dao;

import com.xiaojian.blog.dto.MetaDto;
import com.xiaojian.blog.model.MetaPO;
import com.xiaojian.blog.model.MetaPOExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;


public interface MetaPOMapper {
    int countByExample(MetaPOExample example);

    int deleteByExample(MetaPOExample example);

    int deleteByPrimaryKey(Integer mid);

    int insert(MetaPO record);

    int insertSelective(MetaPO record);

    List<MetaPO> selectByExample(MetaPOExample example);

    MetaPO selectByPrimaryKey(Integer mid);

    int updateByExampleSelective(@Param("record") MetaPO record, @Param("example") MetaPOExample example);

    int updateByExample(@Param("record") MetaPO record, @Param("example") MetaPOExample example);

    int updateByPrimaryKeySelective(MetaPO record);

    int updateByPrimaryKey(MetaPO record);

    Integer countWithSql(Integer mid);

    List<MetaDto> selectFromSql(Map<String, Object> paramap);

    MetaDto selectDtoByNameAndType(@Param("name") String name, @Param("type") String type);
}